package com.zenchn.enums;

/**
 * 客户升降级类型枚举
 * @author panbingqi
 * @date 2021/06/08 15:01
 */
public enum UpgradeTypeEnum {

    /**
     * 升级操作
     **/
    UPGRADE_OPERATION("1","升级"),

    /**
     * 降级操作
     **/
    DEMOTION_OPERATION("2","降级"),

    /**
     * 创建操作
     **/
    CREATE_OPERATION("3","创建");

    UpgradeTypeEnum(String upgradeType, String appDesc) {
        this.upgradeType = upgradeType;
        this.appDesc = appDesc;
    }


    public static String getAppDesc(String upgradeType) {
        for (UpgradeTypeEnum e : values()) {
            if (e.getUpgradeType().equals(upgradeType)) {
                return e.getAppDesc();
            }
        }
        return "";
    }

    /**
     * upgradeType
     **/
    private String upgradeType;
    /**
     * 设备中文描述
     **/
    private String appDesc;


    public String getUpgradeType() {
        return upgradeType;
    }

    public void setUpgradeType(String upgradeType) {
        this.upgradeType = upgradeType;
    }

    public String getAppDesc() {
        return appDesc;
    }

    public void setAppDesc(String appDesc) {
        this.appDesc = appDesc;
    }
}
